function Game (ele){
    //保存对象
 this.ele=document.querySelector(ele)


//1.搞地图
this.map=new Map(this.ele)
this.map.create()


 //2.搞食物
 this.food=new Food(this.ele)
 this.food.create()

 //3.搞蛇
 this.snake=new Snake(this.ele)
 this.snake.create()

}
 //水平移动
 Game.prototype.start = function(){
    setInterval(()=>{
        // 蛇动
        this.snake.move()
    }, 150)

}
